package org.vz.attach.standard.util;

import java.util.Date;

import org.vz.attach.standard.domain.entity.Department;
import org.vz.attach.standard.domain.entity.DepartmentException;
import org.vz.attach.standard.domain.entity.Doctor;
import org.vz.attach.standard.domain.entity.DoctorException;
import org.vz.attach.standard.domain.entity.Fileregister;
import org.vz.attach.standard.domain.entity.FileregisterExction;
import org.vz.attach.standard.domain.entity.Patient;
import org.vz.attach.standard.domain.entity.PatientException;
import org.vz.attach.standard.domain.entity.PatientIdQuery;
import org.vz.attach.standard.domain.entity.PatientQueryException;
import org.vz.attach.standard.domain.entity.QueryFile;
import org.vz.attach.standard.domain.entity.QueryFileExcrption;

public class DataUtil {
	public static void dataTest(){
		Patient pat = new Patient();
		pat.setCreationTime(StringUtil.dateToString(new Date(),"yyyy-MM-dd"));
		pat.setPatientId("患者 ID");
		pat.setPatientname("刘永好");
		pat.setRegistrantId("登记人 ID");
		pat.setRequestId("22a0f9e0-4454-11dc-a6be-3603d6866807");
		pat.setRegistrantName("赵武");
		PatientException patEx = new PatientException();
		patEx.setCreationTime(StringUtil.dateToString(new Date(),"yyyy-MM-dd"));
		patEx.setPatientId("患者 ID");
		patEx.setIdentity("120109197706015516");
		patEx.setName("刘永好");
		patEx.setTelecom("028-2222444");
		patEx.setGenderCode("1");
		patEx.setGender("男性");
		patEx.setBirthday("19570323");
		patEx.setAddr("PUB");
		patEx.setStreetAddressLine("四川省成都市双流县红沙村 3 号");
		patEx.setProvice("广东省");
		patEx.setCity("广州市");
		patEx.setCounty("越秀区");
		patEx.setStreetNameBase("童心街");
		patEx.setStreetName("下塘西路");
		patEx.setHouseNumber("39 号");
		patEx.setPostalCode("510000");
		patEx.setMaritalStatusCode("10");
		patEx.setMaritalStatusValue("未婚");
		patEx.setEthnicGroupCode("01");
		patEx.setEthnicGroupValue("汉族");
		patEx.setAsEmployeeCode("13");
		patEx.setAsEmployeeValue("专业技术人员");
		patEx.setWorkUnit("XXX 学校");
		patEx.setWorkTelPhone("028-9999999");
		patEx.setHealthyCard("38273N237");
		patEx.setHealthrecordId("38273N237");
		patEx.setMedicalorganizationId("XXXXX");
		patEx.setPhone("028-8888888");
		patEx.setRelationshipName("刘好");
		patEx.setOrganizationCode("XXXXX");
		patEx.setOrganizationName("无锡中医院");
		patEx.setCoveredPartyCode("医疗保险类别代码");
		patEx.setCoveredPartyValue("城镇职工基本医疗保险");
		patEx.setRegistrantId("登记人 ID");
		patEx.setRegistrantName("赵武");
		PatientIdQuery piq = new PatientIdQuery();
		piq.setCreationTime(StringUtil.dateToString(new Date(),"yyyy-MM-dd"));
		piq.setPatientId("患者 ID");
		piq.setEffectiveTime("20111212141414");
		piq.setIdnumber("120109197706015516");
		piq.setName("刘永好");
		piq.setTelecom("028-2222444");
		piq.setSexCode("1");
		piq.setSexValue("男性");
		piq.setBrithday("19570323");
		piq.setAddr("PUB");
		piq.setStreetAddressLine("四川省成都市双流县红沙村 3 号");
		piq.setProvice("广东省");
		piq.setCity("广州市");
		piq.setCounty("越秀区");
		piq.setStreetNameBase("童心街");
		piq.setStreetName("下塘西路");
		piq.setHouseNumber("39 号");
		piq.setPostalCode("510000");
		piq.setMaritalStatusCode("10");
		piq.setMaritalStatusValue("未婚");
		piq.setEthnicGroupCode("01");
		piq.setEthnicGroupvalue("汉族");
		piq.setAsEmployeeCode("13");
		piq.setAsEmployeeValue("专业技术人员");
		piq.setWorkUnit("XXX 学校");
		piq.setWorkTelPhone("028-9999999");
		piq.setHealthyId("38273N237");
		piq.setHealthrecordId("38273N237");
		piq.setMedicalorganizationId("XXXXX");
		piq.setPhone("028-8888888");
		piq.setRelationshipName("刘好");
		piq.setOrganization("无锡中医院");
		piq.setCodeSystemName("医疗保险类别代码");
		piq.setDisplayName("城镇职工基本医疗保险");
		piq.setRegistrantId("登记人 ID");
		piq.setRegistrantName("赵武");
		PatientQueryException pqe = new PatientQueryException();
		pqe.setCreationTime(StringUtil.dateToString(new Date(),"yyyy-MM-dd"));
		pqe.setRequstId("22a0f9e0-4454-11dc-a6be-3603d6866807");
		pqe.setTreatmentresult("由于 XXX 原因，查询失败");
		Doctor doctor = new Doctor();
		doctor.setCreationTime(StringUtil.dateToString(new Date(),"yyyy-MM-dd"));
		doctor.setDoctorId("120109197706015518");
		doctor.setProfessionCode("231");
		doctor.setIdentity("120109197706015518");
		doctor.setName("李医生");
		doctor.setGenderCode("1");
		doctor.setGender("男性");
		doctor.setBirthday("19570323");
		doctor.setAddress("XXXX");
		doctor.setApplyDoctorId("120109197706015518");
		doctor.setApplyDoctorName("李人事");
		doctor.setApplyDeptId("xxx12345-X");
		doctor.setApplyDeptName("人事科");
		doctor.setApplyContactPerson("王联系");
		DoctorException de = new DoctorException();
		de.setCreationTime(StringUtil.dateToString(new Date(),"yyyy-MM-dd"));
		de.setRequestId("22a0f9e0-4454-11dc-a6be-3603d6866807");
		Department departMent = new Department();
		departMent.setCreationTime(StringUtil.dateToString(new Date(),"yyyy-MM-dd"));
		departMent.setDbtIdentification("1234567890");
		departMent.setDepartmentTypeCode("A03.0");
		departMent.setDepartmentTypeValue("呼吸内科专业");
		departMent.setDepartmentTypeCodeSystem("2.16.156.10011.2.3.2.62");
		departMent.setDepartmentTypeSystemName("医疗卫生机构业务科室分类与代码表");
		departMent.setDbtName("呼吸内科 1");
		departMent.setHealthcareId("120109197706015518");
		departMent.setAssignedPreson("李人事");
		departMent.setDbtIdentifications("xxx12345-X");
		departMent.setDepartmentName("人事科");
		departMent.setContactPartyName("王联系");
		DepartmentException departEx = new DepartmentException();
		departEx.setCreationTime(StringUtil.dateToString(new Date(),"yyyy-MM-dd"));
		departEx.setRequestId("22a0f9e0-4454-11dc-a6be-3603d6866807");
		departEx.setTreatmentresult("由于 XXX 原因，更新失败");
		Fileregister fileReg = new Fileregister();
		fileReg.setResponseId("3061170D-BDB2-44BD-AED4-1AE9DD734990");
		fileReg.setRequestId("C193FE3B-E71F-4D81-8B8B-9462F35E8D38");
		fileReg.setRepositoryId("D55D2100-090D-4B33-9CFB-7BBC542B02A1");
		fileReg.setStatus("AA");
		FileregisterExction fileEx = new FileregisterExction();
		fileEx.setResponseId("3061170D-BDB2-44BD-AED4-1AE9DD734990");
		fileEx.setRequestId("C193FE3B-E71F-4D81-8B8B-9462F35E8D38");
		fileEx.setStatus("AE");
		fileEx.setText("失败细节描述");
		QueryFile qf = new QueryFile();
		qf.setResponseId("4F7A4991-1037-4213-A724-1A68DB3F900D");
		qf.setRequestId("DDD34F6E-2E89-435A-9A62-F4CD3D4DE23B");
		qf.setDocumentTitle("会诊记录");
		qf.setCreateTime("2012-12-13T11:32:15Z");
		qf.setAuthorName("刘善");
		qf.setPatientID("7760966");
		qf.setPatientName("胡惠");
		qf.setServerOrganization("YYY.YY");
		qf.setEpisodeID(">1111");
		qf.setInTime("2012-12-13T11:32:15Z");
		qf.setOutTime("2012-12-13T12:32:15Z");
		qf.setAdmissionDepart("皮肤科");
		qf.setAdmissionDoctor("李医生");
		qf.setAdmissionType("门诊");
		qf.setDiagnosisResult("皮肤过敏");
		qf.setDetail("状态描述详细信息");		
		QueryFileExcrption qfe = new QueryFileExcrption();
		qfe.setResponseId("4F7A4991-1037-4213-A724-1A68DB3F900D");
		qfe.setRequestId("DDD34F6E-2E89-435A-9A62-F4CD3D4DE23B");
		qfe.setDetail("状态信息细节");
		
	}
}
